package com.example.wtt.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.wtt.entity.Comments;
import com.example.wtt.mapper.CommentsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentsService extends ServiceImpl<CommentsMapper, Comments> {
    @Autowired
    private CommentsMapper commentsMapper;
    public Integer queryComment(Integer dynamicId) {
        return commentsMapper.queryComment(dynamicId);
    }

    public List<Comments> commentDetail(Integer dynamicId) {
        return commentsMapper.commentDetail(dynamicId);
    }

}
